<template>
  <BasicTable @register="register">
    <template #toolbar>
      <a-button>导出</a-button>
    </template>
  </BasicTable>
</template>

<script lang="ts" setup>
import { BasicTable, useTable } from '/@/components/Table';
import { getBasicColumns, getData } from './tableData';

// 表格的props也可以直接注册到useTable内部
// const [register, methods] = useTable(props);

const [register] = useTable({
  columns: getBasicColumns(),
  dataSource: getData,
  useSearchForm: true,
  title: '基础示例',
  titleHelpMessage: '温馨提醒',
});
</script>
